export const options = {
  code1: '<p><b1>marker</b1><b3> = </b3><b1>map.</b1><b3>addMarker</b3><b4>(</b4><b3>options</b3><b4>)</b4>;<br /><b1>marker.</b1><b3>remove</b3><b3>()</b3>;</p>',
  code2: '<p><b1>map.</b1><b3>addMarkers</b3><b4>(</b4><b3>options</b3><b4>)</b4>;</p>',
  code3: '<p><b1>map.</b1><b3>removeMarker</b3><b4>(</b4><b3>options</b3><b4>)</b4>;</p>',
  options1: [
    {
      name: "lon",
      type: "Number",
      default: '',
      desc: "经度",
    },
    {
      name: "lat",
      type: "Number",
      default: '',
      desc: "纬度",
    },
    {
      name: "icon",
      type: "String",
      default: '',
      desc: "自定义图标",
    },
    {
      name: "width",
      type: "Number",
      default: '20',
      desc: "图标的宽度，单位px",
    },
    {
      name: "height",
      type: "Number",
      default: '20',
      desc: "图标的高度，单位px",
    },
  ],
  options2: [
    {
      name: "id",
      type: "String",
      default: '',
      desc: "图层ID",
    },
    {
      name: "icon",
      type: "String",
      default: '',
      desc: "图标url",
    },
    {
      name: "list",
      type: "Array",
      default: '',
      desc: "标记点集合，[MarkerOptions, ...]",
    },
    {
      name: "style",
      type: "Object",
      default: '',
      desc: "图层样式，详见Style表",
    },
  ],
  options3: [
    {
      name: "id",
      type: "String",
      default: '',
      desc: "图层ID",
    },
    {
      name: "list",
      type: "Array",
      default: '',
      desc: "需要删除的标记的ID：[id1, id2, ...]",
    },
  ],
  options4: [
    {
      name: "iconSize",
      type: "Number",
      default: 1,
      desc: "图标大小",
    },
    {
      name: "iconRotate",
      type: "Number",
      default: 0,
      desc: "旋转角度",
    },
    {
      name: "iconAnchor",
      type: "String",
      default: 'center',
      desc: "图标锚点，可选值：center | left | right | top | bottom | top-left | top-right | bottom-left | bottom-right",
    },
    {
      name: "iconOffset",
      type: "Array",
      default: '[0, 0]',
      desc: "图标偏移",
    },
    {
      name: "textSize",
      type: "Number",
      default: 16,
      desc: "文本大小",
    },
    {
      name: "textAnchor",
      type: "String",
      default: "bottom",
      desc: "文本位于图标的方位，可选值：center | left | right | top | bottom | top-left | top-right | bottom-left | bottom-right",
    },
    {
      name: "textOffset",
      type: "String",
      default: 1,
      desc: "文本相对于图标的偏移，单位为 em",
    },
  ],
  options5: [
    {
      name: "lon",
      type: "Number",
      default: '',
      desc: "经度",
    },
    {
      name: "lat",
      type: "Number",
      default: '',
      desc: "纬度",
    },
    {
      name: "title",
      type: "String",
      default: '',
      desc: "标记文字",
    },
    {
      name: "style",
      type: "Object",
      default: '',
      desc: "当前标记样式，详见Style表",
    },
  ],
}